<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>意见箱</title>
    <link rel="shortcut icon" href="<%=path %>/images/feedback.ico"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/css/register_login.css"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/css/promo_reasons.css"/>
    <style type="text/css">
    	.placeholder { color: #aaa}
    </style>
    <script type="text/javascript" src="<%=path %>/js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="<%=path %>/js/jquery.placeholder.js"></script>
    <script type="text/javascript">
    	$(document).ready(function(){
    		var t = navigator.appVersion; 
			if ((t.indexOf('MSIE 7.0') == -1) && (t.indexOf('MSIE 8.0') == -1)){
				alert("请使用IE7.0及以上版本的浏览器");
			}
    		$('#u1, #password').placeholder();
    	});
    	function check(){
    		var t = navigator.appVersion; 
			if ((t.indexOf('MSIE 7.0') == -1) && (t.indexOf('MSIE 8.0') == -1)){
				alert("请使用IE7.0及以上版本的浏览器");
				return false;
			}
    		var str = $("#u1").val();
    		str = str.replace("用户名","");
   			if(str.replace(/(^\s*)|(\s*$)/g,"") == ""){
   				alert("请输入用户名！");
   				return false;
   			}
			var password = $('#password').val();
			if(password == 0){
				alert("请输入密码！");
				return false;
			}
    	}
    </script>
  </head>
  
  <body class="webkit small_layout">
    <div class="startpage" id="startpage">
        <div class="wrap" id="wrap">
            <div id="main">
                <div id="header">
                    <h1 style="margin-top: 123px; "><img class="logo" src="<%=path %>/images/logo.png" alt="Tumblr"/></h1>
                </div>
               <div id="login_form_container" style="">         
                    <form method="post" action="<%=path %>/fd.do?method=login" id="login_form" onsubmit="return check()">             
                        <div class="input_wrapper">
                            <input type="text" name="username" id="u1" placeholder="用户名"/>
                        </div>
                        <div class="input_wrapper">
                            <input type="password" id="password" name="password" placeholder="密  码"/>
                        </div>
                        <button type="submit"><span>登 录</span></button>
                        <br class="clear"/><p class="forgot_password">国家广电总局572台乙机房制作</p>
                    </form>
                </div>
            </div>       
        </div>
        
        
    </div>
</body>
</html>
